.class Lcom/direction/hold/ui/CommonActivity$6;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnTouchListener;


# instance fields
.field private a:Ljava/lang/String;

.field private synthetic b:Lcom/direction/hold/ui/CommonActivity;


# direct methods
.method constructor <init>(Lcom/direction/hold/ui/CommonActivity;)V
    .locals 1

    iput-object p1, p0, Lcom/direction/hold/ui/CommonActivity$6;->b:Lcom/direction/hold/ui/CommonActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/direction/hold/ui/CommonActivity$6;->a:Ljava/lang/String;

    return-void
.end method


# virtual methods
.method public onTouch(Landroid/view/View;Landroid/view/MotionEvent;)Z
    .locals 5

    const v3, 0x7f020018

    const v2, 0x7f020008

    invoke-virtual {p1}, Landroid/view/View;->isPressed()Z

    move-result v1

    if-eqz v1, :cond_0

    move v1, v3

    :goto_0
    invoke-virtual {p1, v1}, Landroid/view/View;->setBackgroundResource(I)V

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getAction()I

    move-result v1

    packed-switch v1, :pswitch_data_0

    :goto_1
    move-object v0, p1

    check-cast v0, Landroid/widget/TextView;

    move-object v1, v0

    invoke-virtual {v1}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/direction/hold/ui/CommonActivity$6;->a:Ljava/lang/String;

    iget-object v1, p0, Lcom/direction/hold/ui/CommonActivity$6;->b:Lcom/direction/hold/ui/CommonActivity;

    iget-object v1, v1, Lcom/direction/hold/ui/CommonActivity;->d:Lcom/direction/hold/ui/CommonActivity;

    const/high16 v2, 0x4100

    invoke-static {v1, v2}, Lcn/cheln/support/app/a;->a(Landroid/content/Context;F)I

    move-result v1

    invoke-virtual {p1}, Landroid/view/View;->getPaddingTop()I

    move-result v2

    invoke-virtual {p1}, Landroid/view/View;->getPaddingRight()I

    move-result v3

    invoke-virtual {p1}, Landroid/view/View;->getPaddingBottom()I

    move-result v4

    invoke-virtual {p1, v1, v2, v3, v4}, Landroid/view/View;->setPadding(IIII)V

    move-object v0, p1

    check-cast v0, Landroid/widget/TextView;

    move-object v1, v0

    iget-object v2, p0, Lcom/direction/hold/ui/CommonActivity$6;->a:Ljava/lang/String;

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    invoke-virtual {p1}, Landroid/view/View;->requestLayout()V

    invoke-virtual {p1}, Landroid/view/View;->invalidate()V

    const/4 v1, 0x1

    return v1

    :cond_0
    move v1, v2

    goto :goto_0

    :pswitch_0
    invoke-virtual {p1, v3}, Landroid/view/View;->setBackgroundResource(I)V

    goto :goto_1

    :pswitch_1
    invoke-virtual {p1, v2}, Landroid/view/View;->setBackgroundResource(I)V

    iget-object v1, p0, Lcom/direction/hold/ui/CommonActivity$6;->b:Lcom/direction/hold/ui/CommonActivity;

    invoke-virtual {v1, p1}, Lcom/direction/hold/ui/CommonActivity;->openContextMenu(Landroid/view/View;)V

    goto :goto_1

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
        :pswitch_0
        :pswitch_1
        :pswitch_1
    .end packed-switch
.end method
